video: Tweak the docs
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 Jan 2021 16:17:26 +0000 (11:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Jan 2021 17:21:03 +0000 (12:21 -0500)
Point out the limitations and use cases of GtkVideo
and mention that GtkPicture can display video just fine.

gtk/gtkmediastream.c
gtk/gtkvideo.c

index c7c0a6fb0c1a47f70e4d93014405204fc4094bd2..29c9c310a28cb9ea0031ddc64fcbe775ae2a0a12 100644 (file)
  * SECTION:gtkmediastream
  * @Short_description: Display media in GTK
  * @Title: GtkMediaStream
- * @See_also: #GdkPaintable
+ * @See_also: #GdkPaintable, #GtkMediaFile
  *
  * #GtkMediaStream is the integration point for media playback inside GTK.
  *
+ * GTK provides an implementation of the #GtkMediaStream interface that
+ * is called #GtkMediaFile.
+ *
  * Apart from application-facing API for stream playback, #GtkMediaStream
  * has a number of APIs that are only useful for implementations and should
  * not be used in applications:
index 8258e251455c14c37f065e4f7df5e35e066b461b..15a5e25a3656488fcfcc1c992a055dcb88a44a12 100644 (file)
  * SECTION:gtkvideo
  * @title: GtkVideo
  * @short_description: A widget for displaying video
- * @see_also: #GtkMediaControls
- *
- * GtkVideo is a widget to show a #GtkMediaStream.
- *
- * It is commonly combined with #GtkMediaControls to give the
- * user a way to control the playback.
+ * @see_also: #GtkMediaControls, #GtkMediaStream
+ *
+ * GtkVideo is a widget to show a #GtkMediaStream with media controls
+ * as provided by #GtkMediaControls. If you just want to display a
+ * video without controls, you can treat it like any other paintable
+ * and for example put it into a #GtkPicture.
+ *
+ * GtkVideo aims to cover use cases such as previews, embedded animations,
+ * etc. It supports autoplay, looping, and simple media controls. It does
+ * not have support for video overlays, multichannel audio, device
+ * selection, or input. If you are writing a full-fledged video player,
+ * you may want to use the #GdkPaintable API and a media framework such
+ * as Gstreamer directly.
  */
 
 struct _GtkVideo